﻿namespace Pps.Gui.Lcd
{
    using Pps.Gui.Base;

    public enum TouchFlag : int
    {
        PutDown = 0x00,
        PutUp = 0x01,
        Contact = 0x02,
        Unknown = 0x03
    }

    public enum TouchId : byte
    {
        A = 0x00,
        B = 0x01,
        C = 0x02,
        D = 0x03,
        E = 0x04,
        Unknown = 0x0F
    }

    public class Touch : Point
    {
        public TouchId Id
        {
            get;
            private set;
        }

        internal TouchFlag Flag
        {
            get;
            private set;
        }

        public Touch(TouchId id, int x, int y, TouchFlag flag)
            : base(x, y)
        {
            this.Id = id;
            this.Flag = flag;
        }
    }
}